const http =require('http')
const router =require('path')

const server =http.createServer()

server.on('request',(req,res)=>{
    let{url}=req;
    router(url,res);
});

server.listen(80,()=>{
    console.log("http://127.0.0.1")
})